should return null when there is no element to compare