Global if to check for localStorage

check, if it is there do stuff, else don't!