Changed exist and nonexist checks

BAM