convenience method for detecting prop def type