only check for undefined instead of forcing a boolean type