Implement the isNotOverLap logic