Since proj_turf is declared to be a turf you dont need to specify /turf again, just istype(proj_turf)