Added if check to prevent error on dictionary request due to incomplete json