please change this to `name.charAt(0)`, it took me 5mins to understand this if ;-)