Preventing empty variable from showing warnings