make isDraft boolean, prevent undefined index notices