Update event.php

Fixed issue with uninstalling event, and removed need for two array checks in `removeHandler`
Merge pull request #1708 from JAY6390/patch-1

Update event.php