Not sure I follow this if statement. I don't think the `else if` block will ever be entered because if `required.length` is 1 or more then it will evaluate as `true` and the `if` block will be entered meaning the `else if` block will never be used..