This won't work. Try if(locate(/obj/structure/closet/statue) in contents)