- Change primary check from `$count` to `$name`
- Add additional comments and `isset( $count )` conditional check