def is_capacity_empty(capacity):
    """
    Check for an empty Capacity object to detect for empty Excel rows.
    :param capacity: Capacity
    :return: Boolean
    """
    if capacity.ap is None \
            and capacity.capacity is None:
        return True
    return False