Better to have same IF for `select` detection as for radio button and then just throw an exception at the end of a method. So if no element matched an exception is thrown.