check for request variable existing before testing