remove unnecessary checks
Merge pull request #6 from nagas/fix/unnecessary-double-check

remove unnecessary checks