move phpdoc comments
cast result to bool
use caching for userExists