Check hasArg for undefined param