added check on the argument

Just check if the argument has been passed