adding check if value is_array and fixing documentation on added methods