Yes, please keep this optimization, the function is called very often.