``if (report_list.length > 0 && typeof columns !== 'undefined') {``

No need for the inner parenthesis, and space after ``if``. :)