Conditions check on controller