Add check for when document dosn't exist in cache