Yes, it returns "if the command was handled". A command that is invalid is still a command that was handled.