removing cache without NPE