Fixed missing array_keys() call