Check liba_state before taking action
Signed-off-by: JohnMave126 <johnmave126@gmail.com>