cleaned up isset function and changed name of stupid global array