checking for None before json load