refactor hasBody util