Changed an == string comparison to using .isEmpty()