megacli: split parser and check logic to separate methods