V, 8 77 6 bytes
Àé1$òhDÀé1òhD
Outputs 1
for odd numbers and nothing (an empty string) for even numbers.
Àé1 " argument times insert a 1
" this converts input to unary
" and now the cursor is at the end of the line
ò " recursively do:
h " move 1 to the left and
D " delete everything from the cursor to the end of the line
" this effectively removes 2 characters at once until
" a breaking error occurs at which point
" implicit ending ò