<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_an_array(var, allow_none=False):
 """ Returns True if var is a numpy array. """

    return isinstance(var, np.ndarray) or (var is None and allow_none)