Adds check on variable