add utility functions get_or_none

Created by: ghost

Add the tested utility functions

  • get_object_or_none
  • get_list_or_none