replace some array_key_exists calls with isset