iOS: stop before running command if one of the arguments is nil