def constraint_1(maze):
    """Checks that all rows are of equal length and not empty."""
    # Appends False to a list each time a row is of unequal length.
    return(False if False in [False for row in maze if len(row) < 1 or
                              len(row) != len(maze[0])] else True)