Added missing None check to *_exist() functions