default data to a hash so we no longer need is_a checks

If we default the variable to a hash, we can remove the is_a check