Cleaning up bing key checking function