use isTrait() if php > 5.4; fix doc-string for abstract classes