avoid PHP warning for global REST types method