php better assertion.