Move sendJson() up into the main Mvc\Controller and add hasFile to the main Form class