check null before parse