Fixing a boolean exists check