Improved performance in null and undefined values