Consolidates the ifPrototypeGetID function