check for undefined values