Added .gitignore for PhpStorm poject files.
Fixed checks for NULL.
Merge pull request #1 from D4rk4ng3l/master

Small improvments