`currentelementToLoadArray` shouldn't be an Array but just a string. Since we don't need to split here this line can be removed and element can be used below.