<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def no_gaps(curve):
 """ Check for gaps, after ignoring any NaNs at the top and bottom. """

    tnt = utils.top_and_tail(curve)
    return not any(np.isnan(tnt))