refactor isList
rise scrutinizer-ci score to 10.0