Without a hands on diagnosis there is no way of telling if your Toyota Corolla's catalytic converter is bad or not. The check engine light could illuminate and set a catalytic converter efficiency trouble code however the CAT needs to be physically inspected. Often a defective rear oxygen sensor (the one that tells your Toyota's computer whether the catalytic converter is functioning properly or not) is defective itself.
The fact that your Toyota passed the last smog check does not necessarily mean it will pass this smog check as well, especially if the check engine light is illuminated. Your Toyota Corolla can not pass the smog check if the check engine light is illuminated during the smog check or any time up to one month prior to the smog check (assuming your drive at least 1000 miles a month).