is_neighbor check