The commit is ok to me btw, the only thing that should be fixed is that _is_mdadm is marked as "internal" and should be perhaps renamed to "is_mdadm".