model: add check_current_action() function