just use this inline: `return 'og:title' === $node->attr('property');` (also note that I changed the expression)