Fixed if/else clause for Open Graph