Improve askDefault condition and change sintax to PSR-2