public function isVimeo($video) {
        $playerurl = (is_string($video) ? $video :
            (isset($video['player']) ? $video['player'] : $video));
        return preg_match('~player\.vimeo\.com~i', $playerurl);
    }