Plans Controller check code mostly correct