Prevent PHP warnings

Edit with both changes, and braces, as requested.

Apologies for my limited understanding of Git + Github.
Replace isset() with property_exists()
Merge pull request #17 from YahnisElsts/pull_15

Pull 15