Add checks in sdb_array_pop_num()