hack for input type check that discerns between array and object