refactor: remove bool param to keep SRP
refactor: reduce complexity
rafactor: camelCase var name
refactor: reduce complexity
refactor: remove unused var
refactor: remove unused var
refactor: reduce complexity
refactor: remove elseif
refactor: reduce npath complexity
refactor: reduce npath / cyclomatic complexity
refactor: reduce complexity, remove closure
refactor: reduce complexity
typo, docblox