Fix redundancy of value check
Merge pull request #19 from ginriki/fix_redundancy

Fix redundancy of value check