Implemented exists method on controller.