We should implement `hasAttachment` directly, rather than internal of `get`, for better performance. I saw a small improvement in some of my benchmarks when I did this a few day ago.