simplifying argSlice and getObjIfNonDomizerObj functions