Executing the command does the lookup if needed and returns the same error when not found, no need to do it separately.