class_exists before loading model

skip attaching model if model could not be found after requiring class file.
useful in case class was under namespace, as it avoid fatal error from unfound class.
Side effect : loading a model file that does not contain a class, will not produce fatal error.