please rename this function to "doesIntersect"