::IsTool() rewrite

Completed the TODO: