using ee()

And adding support to this function on versions below 2.6
@2x not as RegEx

There's no need using RegEx on retina checking
removing double slashes without capturing group
Checking for valid URL using filter

instead of a complex RegEx. Native functions are faster.
is_readable instead of fopen