Made select_helper.select more robust in handling the empty case. Added a limit select function