As you will provide now the type() method, verify its return value as well.