Removed defined? as it was unnecessary as it would never be undefined if called