There's no need for this if statement, you can safely always call the next line because `inputOrder` is optional.  Your `if` and `else` are actually doing the exact same thing.