Adding ->isRest check to the usage-example