Modified each function with a list return type to return null if the list that is being returned is emtpy