How can we create a custom bound if else helper in Ember.js?

{{#can action="post-create" }}
   // add  html
{{/can }}

This helper function read the action, if this action exists in an global object, it show the html code, if not, it doest’ show.

Any simple snippet can help?