Check if the command is not undefined