Should have used '&&' operator instead of '||', duh.