set variable isDocked to falsey value in default case