Check for null cache