use a prettier check for undefined variable