Wrap function body of for..in statements with hasOwnProperty()
Check if line has only null values and disable toggle button if so.
(converted all indents to tabs)