Make sure start and end values are provided before comparing them