add comment explaining isFinite check