array_get_safe() fix