Added an extra check, so people who still have php 5.2 get a sensible error message. Fixes #235.