fix : checks if the unidirectional connection exists instead of checking the bidirectional connection