Fix typo in previous commit, add if in getExtraClasses if there is no extra type