feat: how to dectect if variable defined