Added a isset() to avoid notices on certain PHP configurations.