Add a function to check if there was any intersection