updated source if statement to check for isset, hopefully doesn't break the planet