Fixed a Firefox compatibility issue

Browser compatibility test was failing on Firefox because the testing method was returning false.