Optimizing #isRestful