Integrability of Oscillators and Transcendental Invariant Curves