Factored out repetitious checks for content to it's own method simplifying code.

Fix output method to use $this->input rather than Input

Updated $this->index_column to potentially be a string or callback if it doesn't match row array key.