Verify if CKEDITOR has been loaded into browser

I added some verifications to just let ckeditor to be initialized when CKEDITOR is available on browser. I did this because with simple_form, the initialization snippet for CKEDITOR is called before it is included on document, in the footer of page. If anyone has a better approach, please, tell me.