protected function modelHasTrait($names)
    {
        if ( ! is_array($names)) {
            $names = (array) $names;
        }

        return (bool) count(array_intersect($names, $this->getTraitNames()));
    }