fixed #280 added check for empty body in extension function