Check if the button passed has the correct type
That's not how that works.