This doesn't work as the html logic is no longer in this if statement. I think the if() should be kept in the plugin to just return false if it's not true. Then the layout really is just the layout