Added check to see if file exists in system/library/cache.php