Update Role.php

Remove manual instanceof check and use type hinting in the method signature.