#Pyth, 5 bytes
._.&E
Notice the cute face ._.
#How?
._.&EQ - Q means input and is implicit. .& - Bitwise AND between: E - The second input and Q - The first input. ._ - Sign. 0 if it equals 0, 1 otherwise.
If inconsistent values are allowed:
#Pyth, 3 bytes
.&E