Ignore .idea files created by phpstorm
If server protocol is not defined, throw exception instead of fatal error.
If you throw an exception, do not do a return.
key_exists is deprecated.
Probably not needed. But just make sure a class is loaded only once.
Fetch available protocols using getProtocols()
Update some more php comments
Remove unused variable. Overwritten immediately.
Fixed some more phpdoc comments