Added check to make sure property exists before checking visibility.