Quiet PHP notices

Closes #377.