Extract exists? fn, doing null check and file exists
Remove nils as it's redundnnat