small refactor
check existance