If statements before sourcing