In my code I have this line, but I was wondering if there is way to check whether @\"SomeController\" exists before I use it with the \"instantiateViewControllerWit
You can wrap the code with try-catch exception handling and decide how to react if such an exception occurs.
I use this method to dynamically instantiate view controllers without having to know if they are represented in the Storyboard or a nib file.