Only check the keys if the second argument to FetchKeys evaluates to true