Fixed conditional check for existence of post format function.