Remove magic numbers
exists is more readable and efficient