rubocop: fixed "Space inside square brackets"
rubocop: disable Style/NegatedIf check

unless should used only in traling form
rubocop: fixed "Favor modifier if usage when having a single-line body"
rubocop: fixed "Favor until over while for negative conditions"