Add function for capturing true value of undefined