Check whether commands are installed before installing them.

Specifically composer and laravel in this case.