Construction 'for' defect fixed: else block wasn't evaluated if input array is empty.