There's no reason to use strtolower, URLs are supposed to be case sensitive. Then, instead of foreach in_array could be used, or even stripos or strncmp to just check if URL path starts with Special:HubRssFeed.