def IS_ARRAY(expression):
    """
    Determines if the operand is an array. Returns a boolean.
    See https://docs.mongodb.com/manual/reference/operator/aggregation/isArray/
    for more details
    :param expression: Any valid expression.
    :return: Aggregation operator
    """
    return {'$isArray': expression}
