Adding a method to check if name is present

There is no way to add a test for this case because we can't create a mock for classes inside reflect package.
I guess we could throw an `AssertionError` here, or some other `Error`.
The application can't run if the `-parameters` arg is not set.