Python Check If Variable Has Value