Refactored to check if there is only a subcache exists