Use 'istype' instead of 'is-type'