makes isAjax check more clear