Change parentViewController check

This should be checking for existence, not non-existence, for self.parentViewController
Merge pull request #174 from shawnwall/patch-2

Change parentViewController check