checking for nil along with emptiness
Merge pull request #6 from komidore64/nilclass-empty

checking for nil along with emptiness