Ensure all function eventualities have a return if needed