if(substr($mime, 0, 5) == 'image' || substr($src,0,15) == 'https://goo.gl/') { ... }