Made it possible to call rest methods with nil