Do we need to check the length of lineArray greater than 2?