Not sure why I originally used array_key_exists(). Switch for isset()