Added 2d array function and helper function to check if obj_val is array or not