Moved if statement outside of {{#embeds}}