Added media_isexternal()
tests for media_isexternal
apply media_isexternal