improve readability by extracting code to ::isArgument