Seems like maybe these could be ||= as well (especially this first one).