Add check on optional param in method on web service.