Actually, I don't think we need this check anymore, since spec.method is created by restjsdoc it will always be a string. The check is left over from when this would have been called with spec being an object that was passed to the route registration.