Sanitizing already existing use of PHP's assert