Reduced count of notices and strict standards
Reduced count of notices and strict standards.
Would be nice to remove duplicated blocks
Merge pull request #29 from dimitrystd/reduce_warnings_in_php_5_4

Reduced count of warning for php 5.4+