I think that since this is an example, it should be up to date with the non-deprecated functions. Are you sure it should be reverted to use the `has*` functions?