both not needed in ruby. If it is assigned anywhere in method even in only one branch of if, it is already defined and have nil