check whether prop.type is defined