private void addErrsForArray(List<RuntimeException> errs, AddObjectToArrayInput input) {
        if (input.getArray() == null) {
            String msg = String.format(ExceptionMsgs.NULL_OR_EMPTY_INPUT, Constants.InputNames.ARRAY);
            errs.add(new IllegalArgumentException(msg));
        }