Place hasArgument() check at the beginning of getArgument() method 

If input definition doesn't have specified argument, then unnecessary operations will be executed ($arguments = is_int($name) ? array_values($this->arguments) : $this->arguments;)
merged branch alexpods/patch-1 (PR #7864)

This PR was merged into the master branch.

Discussion
----------

Place hasArgument() check at the beginning of getArgument() method

If input definition doesn't have specified argument, then unnecessary operations will be executed ($arguments = is_int($name) ? array_values($this->arguments) : $this->arguments;)

Commits
-------

992c218 Place hasArgument() check at the beginning of getArgument() method