Generates a property for an instance variable if it doesn't exist.