private function _isURL($str) { if (preg_match('/^http(s)?:\\/\\/.+/', $str)) { return true; } return false; }