Nice use of the ternary operator! Do you know the other ways to write this method as well?