Use isTiled() isntead of pattern matching on type.