avoid PHP warnings for uninitialised arrays
Merge pull request #102 from christianwach/minor-fixes

avoid PHP warnings for uninitialised variables