alternative way to check if arguments given