Avoid unneccessary bit-casting
Use is_undefined instead of a check