Removed bug from hooks, return [] in stead of None in emtpy get_hooks