Potential YouTube block expection
Potential YouTube block expection

If a url is passed with no params then ```php parse_str($url['query'], $query) ``` will throw an exception message as isset is not called before hand. This PR fixes that but also cleans up the code to remove duplication and stricter standards.
rikzuiderlicht/concrete5,biplobice/concrete5,mainio/concrete5,deek87/concrete5,concrete5/concrete5,MrKarlDilkington/concrete5,hissy/concrete5,mlocati/concrete5,jaromirdalecky/concrete5,deek87/concrete5,mlocati/concrete5,hissy/concrete5,haeflimi/concrete5,MrKarlDilkington/concrete5,olsgreen/concrete5,jaromirdalecky/concrete5,hissy/concrete5,jaromirdalecky/concrete5,olsgreen/concrete5,haeflimi/concrete5,mlocati/concrete5,concrete5/concrete5,mainio/concrete5,mlocati/concrete5,haeflimi/concrete5,biplobice/concrete5,rikzuiderlicht/concrete5,olsgreen/concrete5,mainio/concrete5,haeflimi/concrete5,hissy/concrete5,jaromirdalecky/concrete5,deek87/concrete5,concrete5/concrete5,rikzuiderlicht/concrete5,deek87/concrete5,biplobice/concrete5,biplobice/concrete5,concrete5/concrete5,MrKarlDilkington/concrete5