use if-statement.
Merge pull request #4 from hansode/fix-coding-style

use if-statement.