Fixed logic check

Fixed the logic check for softDeletes in createModel()