On the solvability of Painlevé ${\rm II}$ and ${\rm IV}$