[loader] Add canBeAttached method