Refactor #external? method
Merge pull request #113 from sergii/master

Make #external? method more readable