This should probably be `caller = if caller_name.nil? then a else b end` or even `caller = caller_name ? b : a`.