check for value on ajax state request