undefined variable; check if it's set instead