check for undefined results