def is_smth_near(profile, v1, rng=2):
    """
    Return index of something near if something exists near the target position. Else return None.
    :param profile: list(int) - profile
    :param v1: int - target place
    :param rng: int - how far to search from target
    :return: int/None - either a place where we have found something or None
    """
    # fill the search space
    to_search = [v1]
    for i in range(1, rng + 1):
        to_search.extend([v1 - i, v1 + i])
    # search the search space
    for i in to_search:
        if 0 <= i < len(profile) and profile[i] != 0:
            return i

    return None