Instead of having an `instanceof` check, you can change the type of argument to be `boolean` for when the argument is present, and `UndefinedPlaceholder` when the caller didn't pass an argument. Common code can be factored into a helper method. I'll merge this now but keep this in mind whenever you find yourself using an `instanceof` check in a core method.