Use if ! here. since -e will break you out of the script.