Replacing and improving pattern guards with PMC syntax