fix js -> php null judgement