def are_lower_floors_empty(floors, floor_number):
    """Check if floors lower than floor_number are empty."""
    return all(not floor.generator and not floor.microchip
               for index, floor in enumerate(floors[:floor_number]))