Prefer empty function over is_null. #2191