adding additional check to self.adjacency_list to see if empty