removing redundant nil check
Merge pull request #6 from hasghari/minor

removing redundant nil check