iciSometimes our method failes. Here you can handle edge cases with an empty referer