Gracefully handling scenarios with two outcomes is something we as developers would usually work on....Read more
Commonly use array methods.