use isEmpty() instead of size() == 0
Merge pull request #72 from norbertpotocki/small-improvements

Small improvements
simplify transformation handling