Missing curly brace after ```if``` statement