It is a good practice to return only in one line and use the same data type, if you return an array, so you can return an empty array when the condition is not reached instead of a false value