Check whether a parameter declaration is a type before trying