Performing a check on the returned value when a command is set.