def check_cell(y, x, field):
    """Checks whether at a given position there is a living cell."""
    if -1 < x < len(field[0]) and -1 < y < len(field):
        return bool(field[y][x])
    else:
        return False