added check for empty list.
use helper method instead of extension class.
refactoring
Merge pull request #3 from BedeGaming/fix_for_generating_table_params_records

Added check for empty list