added isAttached method, version 0.3.1