use ||= instead of unless to make it clearer