fixed issue with MY_Model in making change from is_a function to instanceof